<?php
/**
 * @author qingyu8@staff.weibo.com
 * @date 2018/04/28
 */
namespace console\controllers;

use common\logic\Search;
use common\models\Base;
use common\models\Boat;
use common\models\Booker;
use common\models\BookerItem;
use common\models\Cabin;
use common\models\TableField;
use common\models\Trip;
use common\Tool\Oss;
use PHPUnit\Framework\Exception;
use yii;
use yii\db\Query;
use yii\console\Controller;
use GuzzleHttp;
use MongoDB;
use GuzzleHttp\Cookie;
use Symfony\Component\DomCrawler\Crawler;
use GuzzleHttp\Exception\RequestException;
use yii\helpers\Json;

set_time_limit(0);

class SearchController extends Controller {

    public function actionG(){
        echo date('Y/m/d H:i:s') . '|' . __FUNCTION__ . " start\n";
        Search::generate();
        echo date('Y/m/d H:i:s') . '|' . __FUNCTION__ . " end\n";
    }
}
